//
//  YCSignUpLocCell.m
//  YCSchool
//
//  Created by yanglinxia on 16/4/29.
//  Copyright © 2016年 yanglinxia. All rights reserved.
//

#import "YCSignUpLocCell.h"

@interface YCSignUpLocCell()

@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *addressLabel;
@property (weak, nonatomic) IBOutlet UILabel *detailAddressLabel;

@property (weak, nonatomic) IBOutlet UIImageView *locImageView;

@end

@implementation YCSignUpLocCell

- (void)setItemModel:(YCSignUpLocModel *)itemModel
{
    _itemModel = itemModel;
    self.locImageView.highlighted = itemModel.isLoc;
    [self.iconImageView yc_setWebImageWithURLString:itemModel.icon holderSize:CGSizeMake(50, 50)];
    self.addressLabel.text = itemModel.address;
    self.detailAddressLabel.text = itemModel.detailAddress;
}

- (void)awakeFromNib {
    // Initialization code
    self.addressLabel.textColor = [UIColor yc_colorWithUInt:0x333333];
    self.detailAddressLabel.textColor = [UIColor yc_colorWithUInt:0x999999];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
